/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.pelicula.registro.impl;

import com.pelicula.registro.dao.PeliculaDao;
import com.pelicula.registro.dao.PeliculaDaoImpl;
import com.pelicula.registro.model.Pelicula;
import com.pelicula.registro.services.PeliculaService;
import java.sql.SQLException;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.ejb.Stateless;


/**
 *
 * @author usuario
 */

@Stateless
public class PeliculaImpl implements PeliculaService {

    public Integer obtenerStock(int ID) {
        return 1;
        //throw new UnsupportedOperationException("Not supported yet.");
    }

    public Integer alquilarPelicula(int ID) {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    public Pelicula devolverPelicula(int ID) {
        Pelicula p;
        PeliculaDao peliDao = new PeliculaDaoImpl();
        p = peliDao.obtenerPelicula(ID);
        return p;


    }

  


}
